<template>
  <div id="app">
    <keep-alive exclude="Detail">
    <router-view></router-view></keep-alive>
    <tab-bar>
      <tab-bar-item path="/cart">
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item path="/category">
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item path="home">
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/profile">
        <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>

<script>

import TabBar from './components/TabBar.vue'
import TabBarItem from './components/TabBarItem.vue'
export default {
  name: 'App',
  components: {
  TabBar,
  TabBarItem
  }
}
</script>

<style scoped>
 @import"./css/base.css"
</style>
